﻿using BoriPeter.FitnessJournal8.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FitnessJournal8.Interfaces.DataSources
{
    public interface IFoodDataSource
    {
        Task<List<Food>> GetAllAsync();

        Task<Food> GetByIdAsync(int _id);

        Task<Food> GetWhereAsync(Func<Food, bool> _expression);

        Task SaveAllAsync(List<Food> _list);

        Task SaveAsync(Food _food);
    }
}
